package cn.lili.controller.feign.plus;

import cn.lili.modules.plus.service.UrbanVipClientService;
import cn.lili.modules.system.client.UrbanVipClient;
import cn.lili.modules.system.entity.dos.LiVip;
import cn.lili.modules.system.entity.dto.VipPageDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class UrbanVipClientController implements UrbanVipClient {

    @Autowired
    private UrbanVipClientService vipClientService;
    @Override
    public Page<LiVip> getVipList(VipPageDto dto) {
        return vipClientService.getVipList(dto);
    }

    @Override
    public void vipFreeze(String id) {
        vipClientService.vipFreeze(id);
    }

    @Override
    public void vipUnfreeze(String id) {
        vipClientService.vipUnfreeze(id);
    }

    @Override
    public void CheckVip() {
       vipClientService.CheckVip();
    }
}
